package com.demo2do.sms.rao;

import java.util.Map;

import com.demo2do.core.entity.result.HttpResult;
import com.demo2do.core.http.HttpMethod;
import com.demo2do.core.http.annotation.Rao;
import com.demo2do.core.http.annotation.RaoForm;
import com.demo2do.core.http.annotation.RaoMapping;
import com.demo2do.sms.entity.sms.SmsUrls;

/**
 * 
 * @author mohanlan
 *
 */
@Rao
public interface SmsRao {
    
    /**
     * Do single send 
     * 
     * @param bodyForms
     *        mobile    --String single mobile
     *        text      --String text
     *        apikey    --String apikey
     *        
     * @return
     */
    @RaoMapping(value = SmsUrls.SINGLE_SEND, method = HttpMethod.POST)
    public HttpResult singleSend(@RaoForm Map<String, Object> bodyForms);
    
    /**
     * Do batch send
     * 
     * @param bodyForms
     *        mobile    --String multiple mobiles
     *        text      --String text
     *        apikey    --String apikey
     *        
     * @return
     */
    @RaoMapping(value = SmsUrls.BATCH_SEND, method = HttpMethod.POST)
    public HttpResult batchSend(@RaoForm Map<String, Object> bodyForms);
}
